package com.library.mapper;


import com.library.domain.Author;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthorMapper {
    List<Author> selectAll();

    List<Author> selectByName(String authorName);

    List<Author> selectKey(String key);

    List<String> selectAuthors();

    Integer add(Author author);

    Integer del(int aid);

    Integer change(Author author);
}
